$(function(){
	App.code = 'config';
	App.ctx = '/' + App.code;
	
	App.go2 = function(to) {
		switch (to) {
		case '':
		case '#':
		case '#index':
			var acts = {};
			var menus = [{
				title : '配置中心首页',
				ctx: 'config',
			}, ];
			App.show({
				ctx: 'base',
				action: 'dirIndex',
				params: {
					acts: acts,
					menus: menus
				}
			}, $.noop, App.main);
			break;
		case '#envIndex':
			App.show({
				ctx: 'base',
				action: 'envIndex'
			}, $.noop, App.main);
			break;
		case '#topology':
		case '#envTopology':
			App.show({
				ctx: 'base',
				action: 'envTopology'
			}, $.noop, App.main);
			break;
		}
	}
});
